#include<unistd.h>
#include<stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>


int main(int argc, char *argv[])
{
	if(argc < 2){
		return 1;
	}
	int fd = open(argv[1], O_RDWR, 0664);// 3
	close(1);
	dup(fd);
	printf("asdfghjk\n");

	write(fd, "陆峰", 6);
	close(fd);
	return 0;
}
